#pragma once
#include <cstddef>
#include <cstdint>

class MemoryPool
{
public:
    MemoryPool(size_t blockSize, size_t blockCount);
    ~MemoryPool();

    void *allocate(size_t memoryIdx);
    size_t getBlockSize() const { return blockSize_; }

private:
    void *memory_;
    size_t blockSize_;
    size_t blockCount_;
};
